package rest.rabarbar.model;

public class Book {
	
	private int ID;
	private String name;
	private String writer;
	private int price;
	
	public Book(){	}
	
	public Book(int ID, String name, String writer, int price){
		this.ID = ID;
		this.name = name;
		this.writer = writer;
		this.price = price;
	}
	
	
	public int getID() {
		return ID;
	}
	public void setID(int iD) {
		ID = iD;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getWriter() {
		return writer;
	}
	public void setWriter(String writer) {
		this.writer = writer;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}

	@Override
	public String toString() {
		return "Book [ID=" + ID + ", name=" + name + ", writer=" + writer
				+ ", price=" + price + "]";
	}
	

}
